package com.douing.ad.dsp.bidding.dto;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConfigInfo {
    /**
     * bidding超时时间
     */
    @Value("${ad.dsp.bidding.tmax}")
    private long tmax;

    /**
     * 最多处理创意数
     */
    @Value("${ad.dsp.bidding.maxcreatives}")
    private long maxcreatives;

    /**
     * 出价系数
     */
    @Value("${ad.dsp.bidding.bidratio}")
    private float bidratio;
    /**
     * 无底价出价系数
     */
    @Value("${ad.dsp.bidding.rationobidfloor}")
    private float rationobidfloor;
    
    /**
     * 人群定向出价系数
     */
    @Value("${ad.dsp.bidding.bidcrowd}")
    private float bidcrowd;
    
    /**
     * 流量关闭控制
     * @return
     */
    @Value("${ad.dsp.bidding.trafficoff}")
    private long trafficoff;
    
    
//    /**
//     * 统计关闭控制
//     * @return
//     */
//    @Value("${ad.dsp.bidding.tjoff}")
//    @AutoUpdate
//    private long tjoff;
    
    private long tjoff = 0L;

    public long getTmax() {
      return tmax;
    }

    public void setTmax(long tmax) {
      this.tmax = tmax;
    }

    public long getMaxcreatives() {
      return maxcreatives;
    }

    public void setMaxcreatives(long maxcreatives) {
      this.maxcreatives = maxcreatives;
    }

    public float getBidratio() {
      return bidratio;
    }

    public void setBidratio(float bidratio) {
      this.bidratio = bidratio;
    }

    public float getRationobidfloor() {
      return rationobidfloor;
    }

    public void setRationobidfloor(float rationobidfloor) {
      this.rationobidfloor = rationobidfloor;
    }

    public float getBidcrowd() {
        return bidcrowd;
    }

    public void setBidcrowd(float bidcrowd) {
        this.bidcrowd = bidcrowd;
    }

    public long getTrafficoff() {
        return trafficoff;
    }

    public void setTrafficoff(long trafficoff) {
        this.trafficoff = trafficoff;
    }

    public long getTjoff() {
        return tjoff;
    }

    public void setTjoff(long tjoff) {
        this.tjoff = tjoff;
    }
     
}
